//Timer based hardware PPM interrupt

void ppm_fun()
{
  time_temp = TCNT1;
  TCNT1 = 0;
  
  txdata.AxisOut[channel_no] = time_temp;
  
  if (channel_no<CHANNELS) channel_no++;

  if (time_temp > 6000)
  {
    channel_count = channel_no;
    channel_no = 0;
    transmitted = 0;                               
  }
  
  //Serial.println(time_temp, DEC);
}



